package com.lzh.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.common.to.mq.SeckillOrderTo;
import com.lzh.common.utils.PageUtils;
import com.lzh.gulimall.order.config.alipay.PayVo;
import com.lzh.gulimall.order.entity.OrderEntity;
import com.lzh.gulimall.order.vo.OrderConfirmVo;
import com.lzh.gulimall.order.vo.OrderSubmitVo;
import com.lzh.gulimall.order.vo.PayAsyncVo;
import com.lzh.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author liuzhihui
 * @email 
 * @date 2020-08-17 17:38:14
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo asyncVo);

    void createSeckillOrder(SeckillOrderTo seckillOrderTo);
}

